package com.my.junit.service.impl;

import com.my.junit.service.BarService;
import com.my.junit.service.RealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zijian Liao
 * @since 1.0.0
 */
@Service
public class BarServiceImpl implements BarService {

    @Autowired
    private RealService realService;

    @Override
    public String hello() {
        System.out.println("bar hello");
        return "bar hello";
    }

    @Override
    public String mock() {
        System.out.println("bar mock");
        return "bar mock";
    }

    @Override
    public String mock(int a) {
        return "ok";
    }

    @Override
    public void real() {
        System.out.println("bar real");
        realService.real();
    }
}
